package com.yami.trading.huobi.data.websocket.service.huobi.connection;


import com.yami.trading.huobi.data.websocket.constant.Options;

import java.net.MalformedURLException;
import java.net.URL;

public class HuobiRestConnection {

	private Options options;

	private String host;

	public Options getOptions() {
		return options;
	}

	public HuobiRestConnection(Options options) {
		this.options = options;
		try {
			this.host = new URL(this.options.getRestHost()).getHost();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
}
